<?php
//$mytrustdirname = basename( dirname( __FILE__ ) ) ;
$mytrustdirpath = dirname(__FILE__);

if (isset($_GET['page'])) {
	$page = $_GET['page'];
} else if (isset($_POST['page'])) {
	$page = $_POST['page'];
}
$page = preg_replace('/[^a-zA-Z0-9_-]/', '', $page);
$allow_page = array('uname');

if (in_array($page, $allow_page) && file_exists("$mytrustdirpath/include/$page.php")) {
	include "$mytrustdirpath/include/$page.php";
} else {
	die('wrong request');
}
